package ch07.proxy.extra.staticProxy;

/**
 * @description: 客户端实现类
 * @author: Fesine
 * @createTime:2016/9/8 18:54
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/9/8 18:54
 */
public class Client {
    public static void main(String[] args) {
        ////普通方法实现
        //Car c1 = new Car();
        //c1.move();
        ////使用继承实现静态代理方法
        //Moveable c2 = new Car2();
        //c2.move();

        //使用聚合实现静态代理方法
        Moveable m1 = new Car();
        Moveable m2 = new CarLogProxy(m1);
        //m2.move();
        Moveable m3 = new CarTimeProxy(m2);
        m3.move();
    }
}
